package models

// https://gorm.io/zh_CN/docs/models.html

// AppGuahao 挂号
type AppGuahao struct {
	ID            int64   `gorm:"primaryKey;autoIncrement;not null"`
	UserID        int64   `gorm:"not null; index;"`
	DeptID        string  `gorm:"type:varchar(36); null;"`
	DeptName      string  `gorm:"type:varchar(36); null;"`
	DoctorID      string  `gorm:"type:varchar(36); null;"`
	DoctorName    string  `gorm:"type:varchar(36); null;"`
	GuahaoNumber  string  `gorm:"type:varchar(11); null;"`
	GuahaoSuccess int64   `gorm:"not null;default:1;comment:挂号成功"`
	GuahaoCosts   float64 `gorm:"null;comment:挂号费用"`
	PayFlag       int64   `gorm:"not null;default:1;comment:挂号支付判别"`
	PayInfo       string  `gorm:"not null;comment:挂号支付详情"`

	BaseModel
}

func (AppGuahao) TableName() string {
	return "app_guahao"
}
